from django.conf import settings
from django.contrib.syndication.feeds import Feed
from mysite.blog.models import *
from django.contrib.comments.models import Comment, FreeComment
from django.core.exceptions import ObjectDoesNotExist

class BlogFeed(Feed):
    title = "Soltys Blog"
    link = "Local host"
    description = "My Blog"
    content ="blog.wstep"

    def items(self):
        return Blog.objects.folter(active=True).order_by('-pub_date')[:10]

    item_author_name = "Pawel Soltysiak"
    item_author_email = "soltys0@gmail.com"
    item_author_link = "http://soltys.wordpress.com"
